﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace ExamAnalysis.Core
{
    //用户定义异常类
    public class UserException : Exception
    {
        //异常关键字，可以是文件路径或者其他
        private String key { get; set; }
        //异常其他参数
        private Object[] values { get; set; }
        //空构造方法
        public UserException()
            : base()
        {

        }
        public UserException(string message)
            : base(message)
        {

        }
        public UserException(string message, string key):base(message)
        {
            this.key = key;
        
        }
        public UserException(string message, string key, Object[] values)
            : this(message, key)
        {
            this.values = values;
        }
        public UserException(string key, Object[] values)
        {
            this.key = key;
            this.values = values;
        }
    }
}